<template>
  <div @click="add">
    {{ count }}
  </div>
</template>

<script setup>
import { computed } from "vue";
// import { useStore } from "vuex";
import { useStore } from "../store/mini-vuex";
let store = useStore();
// let count = computed(() => store.state.count || 0);
let count = computed(() => 0);

function add() {
  store.commit("add");
}
</script>
